home *** CD-ROM | disk | FTP | other *** search
/ Risc World 5 / Risc World 5.iso / SOFTWARE / Issue3 / Games / xrick / !xrick / src / Makefile < prev    next >
Makefile  |  2002-12-13  |  2KB  |  64 lines

  1. #
  2. # xrick/src/Makefile
  3. #
  4. # Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved.
  5. #
  6. # The use and distribution terms for this software are contained in the file
  7. # named README, which can be found in the root of this distribution. By
  8. # using this software in any fashion, you are agreeing to be bound by the
  9. # terms of this license.
  10. #
  11. # You must not remove this notice, or any other, from this software.
  12. #
  13.  
  14. #
  15. # Includes
  16. #
  17. #
  18. ifeq (.depend, $(wildcard .depend))
  19. include .depend
  20. endif
  21.  
  22. ifeq (../Makefile.global, $(wildcard ../Makefile.global))
  23. include ../Makefile.global
  24. else
  25. $(error Oops)
  26. endif
  27.  
  28. #
  29. # Defs
  30. #
  31. #
  32. TARGET = ../xrick
  33. OBJECTS = unzip.o data.o scr_xrick.o scr_pause.o scr_imain.o scr_imap.o scr_gameover.o scr_getname.o dat_picsPC.o dat_picsST.o dat_screens.o dat_tilesPC.o dat_tilesST.o dat_maps.o dat_ents.o dat_spritesST.o dat_spritesPC.o ents.o e_bullet.o e_bomb.o e_rick.o e_sbonus.o e_them.o e_bonus.o e_box.o rects.o util.o game.o xrick.o draw.o maps.o sysvid.o syskbd.o control.o system.o scroller.o sysevt.o sysarg.o syssnd.o sysjoy.o dat_snd.o
  34.  
  35. #
  36. # Rules
  37. #
  38. #
  39.  
  40. all: $(TARGET)
  41.  
  42. $(TARGET): $(OBJECTS) $(XOBJ)
  43.     $(CC) $(OBJECTS) $(XOBJ) $(LDFLAGS) -o $(TARGET)
  44.  
  45. %.o: %.c
  46.     $(CC) $(CFLAGS) -c $< -o $@
  47.  
  48. xrick.res: xrick.rc
  49.     windres $< -O coff -o $@
  50.  
  51. clean:
  52.     rm -f *~ *.o core .depend $(TARGET)
  53.     rm -f *.exe *.core *.res
  54.     rm -f $(LINKS)
  55.  
  56. depend:
  57.     for i in *.c; do $(CPP) $(CFLAGS) -I$(ROOTDIR)/include -MM $$i; done > .depend
  58.  
  59. # eof
  60.  
  61.  
  62.  
  63.  
  64.